From: Stan Grishin Date: Tue, 16 Sep 2025 00:32:49 +0000 (+0000) Subject: adblock-fast: bugfix: dl command X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=02644ad1e4a00ed9d1ba4db84876d2d2d7d7114f;p=feed%2Fpackages.git adblock-fast: bugfix: dl command * only test gzip existence and reset action/param on boot Signed-off-by: Stan Grishin --- diff --git a/net/adblock-fast/Makefile b/net/adblock-fast/Makefile index e8ee16b8f4..2236aac4b5 100644 --- a/net/adblock-fast/Makefile +++ b/net/adblock-fast/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=adblock-fast PKG_VERSION:=1.1.4 -PKG_RELEASE:=12 +PKG_RELEASE:=14 PKG_MAINTAINER:=Stan Grishin PKG_LICENSE:=AGPL-3.0-or-later diff --git a/net/adblock-fast/files/etc/init.d/adblock-fast b/net/adblock-fast/files/etc/init.d/adblock-fast index 6a3ddc5029..179579bf83 100755 --- a/net/adblock-fast/files/etc/init.d/adblock-fast +++ b/net/adblock-fast/files/etc/init.d/adblock-fast @@ -2167,9 +2167,15 @@ adb_start() { local param="$1" validation_result="$3" dns_set_output_values "$dns" - adb_file test_gzip && unset adbf_boot_flag && param='on_start' - - [ -n "$adbf_boot_flag" ] && return 0 + if [ "$action" = 'on_boot' ] || [ -n "$adbf_boot_flag" ]; then + if adb_file test_gzip; then + unset adbf_boot_flag + action='on_start' + param='on_start' + else + return 0 + fi + fi load_environment "$validation_result" "$param" || return 1 status="$(json get status)"